CFLAGS = -Wall -ansi -pedantic -g
TARGET = bfsNet

all: $(TARGET)  network/network.o bfs/bfs.o

$(TARGET): main.c  network/network.o bfs/bfs.o
	$(CC) $(CFLAGS) -o $(TARGET) main.c network/network.o bfs/bfs.o network/tuple.o network/list.o network/hashtbl.o


network/network.o:
	@cd network; make; cd ..

bfs/bfs.o:
	@cd bfs; make; cd ..
	
clean:
	@cd network; make clean; cd ..;
	@cd bfs; make clean; cd ..;

	rm $(TARGET)

dist:
	tar -pczvf $(TARGET).tar.gz main.c Makefile README BUILD LICENSES \
	AUTHORS  network/ bfs/ pruebas/ documentation/


